home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-ilmenau.de!usenet
- From: Gregor Gaertner <gregor.gaertner@theoinf.tu-ilmenau.de>
- Newsgroups: comp.lang.c++
- Subject: Truncate binaryfile at a special position
- Date: Mon, 11 Mar 1996 15:25:04 +0100
- Organization: Technische Universitaet Ilmenau
- Message-ID: <314437C0.41C67EA6@theoinf.tu-ilmenau.de>
- NNTP-Posting-Host: proipc1.theoinf.tu-ilmenau.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4c)
-
- Hello guys,
-
- I have the following problem:
- I have a file, where the last 200 bytes are useless. No I want to
- truncate the last 200 bytes, but I don't know how to realize this with
- the help of the streamclasses in C++. The way to copy the part until the
- useless bytes to a new file is not acceptable for me, because if the
- file is 20 Mb long and I want only to cut 200 bytes from the end, I need
- with this insufficient method 20Mb free space more on the harddisc total
- because of the copy.
- Can anyone help ???
-
- Thanx
- G.G.
-